<template>
  <div class="home">
    <div class="menu">
      <div class="btn" @click="router.push('/room/1/fleet')">车队1</div>
      <div class="btn" @click="router.push('/room/2/fleet')">车队1</div>
      <div class="btn" @click="router.push('/room/3/fleet')">车队1</div>
    </div>
    <div class="man">
      <router-view> </router-view>
    </div>
  </div>
</template>

<script setup name="icon">
import { ref, onMounted } from "vue";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const route = useRoute();

onMounted(() => {
  console.log(route.params);
  console.log("icon");
});
</script>

<style scoped lang="scss"></style>
